﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace AgriculturalMachinery.Models
{
    public class PurchaseRepository
    {
        AgriMachineDataContext amdc = new AgriMachineDataContext();
        List<Purchase> lp = new List<Purchase>();
        public IQueryable<Purchase> GetPurchaseByID(int id)
        {
            return from p in amdc.Purchase where p.UserID == id select p;
        }
    }
}
